package com.guigu.community.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.guigu.community.pojo.ProductCategory;
import com.guigu.community.pojo.Products;
import com.guigu.community.vo.InventoryVo;
import com.guigu.community.vo.ProductRequestVo;
import com.guigu.community.vo.ProductVo;

import java.util.List;

public interface ProductService extends IService<Products> {
    //分页查询
    PageInfo<Products> queryVo(Integer pageNo, Integer pageSize, ProductVo vo);

    //根据Id查询
    Products queryById(Integer id);

    //根据级别查询
    List<ProductCategory> queryByLevel();

    List<Products> queryProductType(Integer suppliersId);

    boolean addProduct(ProductRequestVo request);

    boolean updateById(Products product);

    PageInfo<Products> queryProductType(Integer pageNo, Integer pageSize, ProductVo vo);

    //获取前20条数据
    List<Products> queryId();
}
